import React from 'react'
import withLogin from '../../hoc/withLogin'
function My() {
  // 获取并展示头像和昵称
   let avatar= localStorage.getItem('avatar')
   let username=localStorage.getItem('id')
  return (
    <div><img src={avatar} alt="" style={{width:'100px',height:'100px'}} />
    {username}
    <div>lxr</div>
    </div>
  )
}

export default withLogin(My)